package com.sa.module.uif.pojo;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * 活动概要描述
 * @author huangxin
 *
 */
@MappedSuperclass
public class AbstractActivity {

	private int id;
	private String aName;	//活动名称
	private Timestamp startTime;	//活动开始时间	
	private Timestamp endTime;	//活动截止时间
	private String description;	//活动描述
	private String place;	//活动地点
	private String leader;	//活动组织者的姓名
	private String status;	//活动状态：“即将开始”/“已开始”/“己结束”/“暂停报名”
	
	public AbstractActivity(int id, String aName, Timestamp startTime, Timestamp endTime,
			String describe, String place, String leader, String status) {
		super();
		this.id = id;
		this.aName = aName;
		this.startTime = startTime;
		this.endTime = endTime;
		this.description = describe;
		this.place = place;
		this.leader = leader;
		this.status = status;
	}
	
	public AbstractActivity() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	@Id 
	@GeneratedValue(strategy=IDENTITY)	    
	@Column(name="ID", unique=true, nullable=false)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	@Column(name="NAME", nullable=true, length=20)
	public String getaName() {
		return aName;
	}
	public void setaName(String aName) {
		this.aName = aName;
	}
	
	@Column(name="STARTTIME", nullable=true)
	public Timestamp getStartTime() {
		return startTime;
	}
	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}
	
	@Column(name="ENDTIME", nullable=true)
	public Timestamp getEndTime() {
		return endTime;
	}
	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}
	
	@Column(name="DESCRIPTION", nullable=true, length=200)
	public String getDescription() {
		return description;
	}
	public void setDescription(String describe) {
		this.description = describe;
	}
	
	@Column(name="PLACE", nullable=true, length=100)
	public String getPlace() {
		return place;
	}
	public void setPlace(String place) {
		this.place = place;
	}
	
	@Column(name="LEADER", nullable=true, length=30)
	public String getLeader() {
		return leader;
	}
	public void setLeader(String leader) {
		this.leader = leader;
	}
	
	@Column(name="STATUS", nullable=true, length=10)
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	@Override
	public String toString() {
		return "AbstractActivity [id=" + id + ", aName=" + aName
				+ ", startTime=" + startTime + ", endTime=" + endTime
				+ ", describe=" + description + ", place=" + place + ", leader="
				+ leader + ", status=" + status + "]";
	}
	
	
}
